<!-- REQUIRED JS SCRIPTS -->
<script src="<?=base_url() . 'assets/library/plugins/jQuery/jquery-2.2.3.min.js'?>"></script>
<script src="<?=base_url() . 'assets/library/angular/angular.min.js'?>"></script>
<script src="<?=base_url() . 'assets/library/bootstrap/js/bootstrap.min.js'?>"></script>
<script src="<?=base_url() . 'assets/library/dist/js/app.min.js'?>"></script>
<script src="<?=base_url() . 'assets/library/bootstrap-ui/ui-bootstrap-tpls.min.js'?>"></script>
<script src="<?=base_url() . 'assets/admin/js/base.js'?>"></script>

<?php
    if (!empty($js) && is_array($js)) foreach($js as $item){
        if(preg_match('/^http/i', $item)) {
            echo '<script src="' . $item . '"></script>';
        } else {
            echo '<script src="'. base_url() . ltrim($item, '/') . '?' . STATIC_VERSION . '"></script>';
        }
    }
?>

</body>
</html>

